const PageSetting = Object.assign({
    current: 1,
    total: -1
}, {})

export interface Pagination {
    current: number,
    pageSize: number,
    total: number,
}

export function adaptFn(data: any): Pagination {
    return {
        current: data.current,
        total: data.total,
        pageSize: data.size,
    }
}

export default PageSetting
